package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.OrderProductRefundMapper;
import com.hcb.micro.dto.OrderProductRefund;
import com.hcb.micro.service.IOrderProductRefundService;

@Service("OrderProductRefundService")
public class OrderProductRefundServiceImpl implements IOrderProductRefundService {

	@Autowired
	OrderProductRefundMapper orderProductRefundMapper;

	@Override
	public List<OrderProductRefund> selectListOrderRefund() {

		return orderProductRefundMapper.selectListOrderRefund();
	}

	@Override
	public List<OrderProductRefund> selectByPara(Map<String, Object> map) {
		
		return orderProductRefundMapper.selectByPara(map);
	}

	@Override
	public OrderProductRefund selectByPrimaryKey(Integer id) {

		return orderProductRefundMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(OrderProductRefund record) {

		return orderProductRefundMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<OrderProductRefund> selectByOrderId(Integer orderId) {
		return orderProductRefundMapper.selectByOrderId(orderId);
	}

	@Override
	public OrderProductRefund selectByOrderIdAndProductId(Map<String, Object> map) {
		return orderProductRefundMapper.selectByOrderIdAndProductId(map);
	}

}
